package org.geometerplus.android.fbreader;

import org.geometerplus.fbreader.book.Bookmark;
import org.geometerplus.fbreader.fbreader.FBReaderApp;

import com.shwread.android.qysw.activity.ReadingBookActivity;

public class SelectionShowPopupAction extends FBAndroidAction {
	public SelectionShowPopupAction(ReadingBookActivity baseActivity, FBReaderApp fbreader) {
		super(baseActivity, fbreader);
	}


	@Override
	protected void run(Object ... params) {
		
		//点击的是书签 
		if (params != null && params.length == 3) {
			if (params[0] instanceof Integer && params[1] instanceof Integer) {
				BaseActivity.showPopWindowValid(Integer.valueOf(params[0].toString()),Integer.valueOf(params[1].toString()),(Bookmark) params[2]);
			}else {
				BaseActivity.showPopWindowValid(0,0,(Bookmark) params[2]);
			}
			
		}else {//选择弹出菜单
//			BaseActivity
			
		}
		
	}
}
